from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy

# from apscheduler.schedulers.background import BackgroundScheduler
# 配置orm数据库
db = SQLAlchemy()
# https://www.cnblogs.com/cwp-bg/p/9687005.html
# 配置迁移工具
migrate = Migrate()
# scheduler = BackgroundScheduler()

def init_ext(app):
    db.init_app(app)
    # scheduler.start()
    migrate.init_app(app, db)